﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Manager.master" validateRequest="false" AutoEventWireup="true" CodeFile="BuyEmailMarketing.aspx.cs" Inherits="EShop_BuyEmailMarketing" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<style type="text/css">
    .box-email-template
    {
        height: 300px;
        width: 350px;
    }
</style>
<script language="javascript" type="text/javascript">
    function CheckInput() {
        if (jQuery("#<%= ddlEmailPackage.ClientID %>").val() == "-1") {
            jQuery("#<%= ddlEmailPackage.ClientID %>").focus();
                alert("Xin chọn gói điểm. ");
                return false;
        }
        if (jQuery("#<%= ddlEmailTemplate.ClientID %>").val() == "-1") {
            alert("Xin chọn mẫu email.");
            jQuery("#<%= ddlEmailTemplate.ClientID %>").focus();
            return false;
        }
        return true;
    }
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="content_area1">
        <h2>Mua Email Marketing</h2>
        <div style="padding-left: 30px; margin-bottom: 10px;"><asp:Label ID="lblMessage" runat="server" Visible="false" ForeColor="Blue" Font-Size="15px" Text="Chúc mừng bạn đã mua thành công."></asp:Label></div>
        <div style="padding-left: 10px;">
            <div class="rows">
                <span class="leftrow">Gói điểm:</span>
                <span class="rightrow">
                    <asp:DropDownList ID="ddlEmailPackage" runat="server" Width="150"></asp:DropDownList>
                </span>
            </div>
            <br class="clear" />
            <div class="rows">
                <span class="leftrow">Mẫu email:</span>
                <span class="rightrow">
                    <asp:DropDownList ID="ddlEmailTemplate" runat="server" Width="150" OnSelectedIndexChanged="ddlEmailTemplate_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
                </span>
            </div>
            <br class="clear" />
            <div class="rows">
                <span class="leftrow">Nội dung mẫu email:</span>
                <span class="rightrow">
                    <asp:TextBox ID="txtEmailContent" runat="server" TextMode="MultiLine" ReadOnly="false" CssClass="box-email-template"></asp:TextBox>
                </span>
            </div>
            <br class="clear" />
            <div class="rows">
                <span class="leftrow">&nbsp;</span>
                <span class="rightrow">
                    <asp:Button ID="btnSave" runat="server" Text="Mua" CssClass="buttonDefault form-submit" OnClick="btnSave_Click" OnClientClick="return CheckInput();"/>
                </span>
            </div>
        </div>
        <br class="clear" />
        <img src="<%= ResolveUrl("~/images/bottom.jpg")%>" align="absbottom" alt="" />
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
</asp:Content>

